﻿default: tests

tests: unit-tests
	./unit-tests

unit-tests: SensorTests.o Tests.o Sensor.o DaylightSensorTests.o DaylightSensor.o
	g++ -I. Tests.o SensorTests.o DaylightSensor.o Sensor.o DaylightSensorTests.o -o unit-tests

Tests.o: SensorTests.cpp Sensor.o
	g++ -I. -c Tests.cpp -o Tests.o

SensorTests.o: SensorTests.cpp Sensor.o
	g++ -I. -c SensorTests.cpp -o SensorTests.o

Sensor.o: Sensor.cpp Sensors.h
	g++ -I. -c Sensor.cpp -o Sensor.o

DaylightSensorTests.o: DaylightSensorTests.cpp DaylightSensor.o
	g++ -I. -c DaylightSensorTests.cpp -o DaylightSensorTests.o

DaylightSensor.o: DaylightSensor.cpp Sensors.h
	g++ -I. -c DaylightSensor.cpp -o DaylightSensor.o
	
clean:
	rm -Rf *.o
	rm -Rf *.a
	rm -rf unit-tests
